Previous Book Contents Book Index Next

Inside Macintosh: /
QuickDraw 3D RAVE / QuickDraw 3D RAVE Reference
QuickDraw 3D RAVE Routines / Texture and Bitmap Methods


TQATextureBindColorTable

A drawing engine may define a method to bind a color lookup table to a texture map.

typedef TQAError (*TQATextureBindColorTable) (
                                              TQATexture *texture, 
                                              TQAColorTable *colorTable);
texture
A texture map.
colorTable
A color lookup table (as returned by a previous call to QAColorTableNew).
DESCRIPTION
Your TQATextureBindColorTable function is called whenever an application calls QATextureBindColorTable. Your function should bind the color lookup table specified by the colorTable parameter to the texture map specified by the texture parameter. Note that the type of the specified color lookup table must match that of the pixel type of the texture map to which it is bound. For example, a color lookup table of type kQAColorTable_CL8_RGB32 can be bound only to a texture map whose pixel type is kQAPixel_CL8.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
28 AUG 1996